<?php

function convert_status($status) {
	if ($status) {
		return '<span style="color:green">Online</span>';
	} else {
		return '<span style="color:red">Offline</span>';	
	}
}

function convert_type_news($type) {
	switch ($type) {
		case 1:
			$type = '<font color="#009933">[Not&iacute;cia]</font>';
			break;
		case 2:
			$type = '<font color="#ff0000">[Manuten&ccedil;&atilde;o]</font>';
			break;
		case 3:
			$type = '<font color="#a98803">[Evento]</font>';
			break;
	}
	return $type;
}

?>